import random
from enum import *


class answer(Enum):
    def __str__(self):
        return str(self.value)

    q0 = 'scissor'
    q1 = 'rock'
    q2 = 'paper'


a = input()
A = eval('answer.q' + a)
B = eval('answer.q' + str(random.randint(0, 2)))
if A.value == B.value:
    print('The computer is', str(B) + '. You are', str(A) + ' too. It is a draw.')
elif A.value == 'scissor' and B.value == 'rock':
    print('The computer is', str(B) + '. You are', str(A) + '. You lost.')
elif A.value == 'scissor' and B.value == 'paper':
    print('The computer is', str(B) + '. You are', str(A) + '. You won.')
elif A.value == 'rock' and B.value == 'scissor':
    print('The computer is', str(B) + '. You are', str(A) + '. You won.')
elif A.value == 'rock' and B.value == 'paper':
    print('The computer is', str(B) + '. You are', str(A) + '. You lost.')
elif A.value == 'paper' and B.value == 'scissor':
    print('The computer is', str(B) + '. You are', str(A) + '. You lost.')
else:
    print('The computer is', str(B) + '. You are', str(A) + '. You won.')
